<?php

namespace app\admin\validate;

use think\Validate;

class KmValidate extends Validate
{
    // 定义验证规则
    protected $rule = [
        'exp' => ['require','number'],
        'money' => ['require','number'],
        'vip' => ['require','number'],
        'generatenum' => ['require', 'number'],
        'kmlength' => ['require', 'number'],
        'appid' => ['require', 'number'],
    ];
    //定义验证场景
    protected $scene = [
        'addkm'  =>  ['exp','money','vip','generatenum','kmlength','appid'],
    ];

}